package com.laoli.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.entity.CourseCommentFavoriteRecord;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: edu-lagou
 * @Author: GuoAn.Sun
 * @CreateTime: 2020-10-21 10:17
 * @Description:
 */
@Repository
public interface CourseCommentFavoriteRecordDao extends BaseMapper<CourseCommentFavoriteRecord> {
    @Select("SELECT * from course_comment_favorite_record where comment_id=#{comment_id} and is_del=0")
    List<CourseCommentFavoriteRecord> getFavorites(Integer comment_id);
}
